<script>
	export default {
		onLaunch: function() {
			// 设置请求拦截器
			uni.addInterceptor('request',{
				success(args) {
					if(args.data.status == 300){
							uni.showToast({
								icon:'error',
								title:'登录过期，请重新登录'
							})
							setTimeout(()=>{
								uni.reLaunch({
									url:'/pages/signin/signin'
								})
							},1500)
					}
				}
			})
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
	@import url('./common/iconfont/iconfont.css');
</style>
